#include <stdio.h>
#include <math.h>
int main(void)
{
	int year, month, daysnumber;
	printf("Please inputy year and month\n");
	scanf_s("%d%d", &year, &month);
	
	switch (month)
{  case 1:
	case 3:
	case 5:
	case 7:
	case 8:
	case 10:
	case 12:
		daysnumber = 31;
		break;
	case 4:
	case 6:
	case 9:
	case 11:
		daysnumber = 30;
		break;
	case 2:
		if ((year % 400 == 0) || (year % 4 == 0 && year % 100 != 0))
		{
			daysnumber = 29;

		}
		else
		{
			daysnumber = 28;
		}
	default:printf("You are wrong!");
	}
	printf("The daysnumber is %d", daysnumber);
	return 0;









}